import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false


import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
Vue.use(ViewUI);

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor)


// 全局挂载http请求
import api from './api/index'
Vue.prototype.$api = api;

import Bus from '@/utils/bus'
Vue.prototype.$bus = Bus;

const vueInstance = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')


export { vueInstance }